<?php
$this->breadcrumbs=array(
	'Programs'=>array('index'),
	$model->nev,
);

$this->menu=array(
	array('label'=>'List Program','url'=>array('index')),
	array('label'=>'Create Program','url'=>array('create')),
	array('label'=>'Update Program','url'=>array('update','id'=>$model->id)),
	array('label'=>'Delete Program','url'=>'#','linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Program','url'=>array('admin')),
);
?>

<div class="row">
    <div class="span11">
    <h1><?php echo $model->nev; ?></h1>
    </div>
    
    <div class="span1">
        <img src="<?php echo $model->getIconUrl();?>" width="32" height="37" alt="icon" />
    </div>
</div>

<hr />
<div class="row">
    <div class="span4">
        <?php echo CHtml::link(CHtml::image($model->getFileUrl(), $model->nev),'#modal', array('data-toggle'=>'modal')); ?>
        
        <?php $this->beginWidget('bootstrap.widgets.BootModal', array(
            'id'=>'modal',
            'htmlOptions'=>array('class'=>'hide'),            
        )); ?>
        
        <div class="modal-header">
            <a class="close" data-dismiss="modal">&times;</a>           
        </div>
        <div class="modal-body">
            <?php echo CHtml::image($model->getFileUrl('large')); ?>
        </div>        
        <?php $this->endWidget(); ?>
        
    </div>
    <div class="span8">
    <?php $this->widget('ext.bootstrap.widgets.BootDetailView',array(
    	'data'=>$model,
    	'attributes'=>array(
    		'nev',
    		array(
                'label'=>'Leírás',
                'type'=>'raw',
                'value'=> $model->leiras,
            ),
    		'datum',
            'address'
    	),
    )); ?>
    </div>
</div>
